package test.design_pattern.observer.listener.unordered;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;
import test.design_pattern.observer.OrderEvent;

@Component
public class Listener2 implements ApplicationListener<OrderEvent> {

    @Override
    public void onApplicationEvent(OrderEvent orderEvent) {
        System.out.println("Listener2");
    }
}
